﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="T2.Logging.Business.Workflows.LogCategoryQuery"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:tlb="clr-namespace:T2.Logging.Business;assembly=T2.Logging.Business.Entities"
 xmlns:tlbei="clr-namespace:T2.Logging.Business.Entities.Interfaces;assembly=T2.Logging.Business.Entities"
 xmlns:tlbesi="clr-namespace:T2.Logging.Business.Entities.Search.Interfaces;assembly=T2.Logging.Business.Entities"
 xmlns:tlbwa="clr-namespace:T2.Logging.Business.Workflow.Activites;assembly=T2.Logging.Business.Workflow.Activities"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="BusinessService" Type="InArgument(tlb:IBusinessService)" />
    <x:Property Name="Param" Type="InArgument(tlbei:ILogCategory_biz)" />
    <x:Property Name="ParamSearch" Type="InArgument(tlbesi:ILogCategorySearch_biz)" />
    <x:Property Name="RetVal" Type="OutArgument(tlbei:ILogCategory_biz)" />
    <x:Property Name="RetValCollection" Type="OutArgument(tlbei:ILogCategory_biz[])" />
    <x:Property Name="RoleNames" Type="InArgument(s:String[])" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>T2.Logging.Business.Workflows.LogCategoryQuery_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>T2.Logging.Business.Entities.Interfaces</x:String>
      <x:String>T2.Logging.Business.Entities.Search.Interfaces</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Configuration</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Workflow.Activities</AssemblyReference>
      <AssemblyReference>System.Workflow.ComponentModel</AssemblyReference>
      <AssemblyReference>System.Workflow.Runtime</AssemblyReference>
      <AssemblyReference>System.WorkflowServices</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>T2.Logging.Business.Entities</AssemblyReference>
      <AssemblyReference>T2.Logging.Business.Workflow.Activities</AssemblyReference>
      <AssemblyReference>T2.Logging.Common</AssemblyReference>
      <AssemblyReference>T2.Logging.Data</AssemblyReference>
      <AssemblyReference>System.Web</AssemblyReference>
      <AssemblyReference>System.Web.Http</AssemblyReference>
      <AssemblyReference>System.Web.ApplicationServices</AssemblyReference>
      <AssemblyReference>System.Web.Services</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>T2.Logging.Business</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Flowchart sap2010:WorkflowViewState.IdRef="Flowchart_1" StartNode="{x:Reference __ReferenceID5}">
    <FlowStep x:Name="__ReferenceID1" sap2010:WorkflowViewState.IdRef="FlowStep_1">
      <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_1" Reason="User is not a super admin">
        <TerminateWorkflow.Exception>
          <InArgument x:TypeArguments="s:Exception">
            <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
          </InArgument>
        </TerminateWorkflow.Exception>
      </TerminateWorkflow>
    </FlowStep>
    <FlowSwitch x:TypeArguments="x:String" x:Name="__ReferenceID0" sap2010:WorkflowViewState.IdRef="FlowSwitch`1_1">
      <FlowSwitch.Expression>
        <mca:CSharpValue x:TypeArguments="x:String">Param.Action</mca:CSharpValue>
      </FlowSwitch.Expression>
      <FlowStep x:Key="GetOne" x:Name="__ReferenceID2" sap2010:WorkflowViewState.IdRef="FlowStep_2">
        <Sequence DisplayName="GetOne Sequence" sap2010:WorkflowViewState.IdRef="Sequence_1">
          <tlbwa:Db_T2_Logging_LogCategory_GetOne DisplayName="LogCategory_GetOne" sap2010:WorkflowViewState.IdRef="Db_T2_Logging_LogCategory_GetOne_1">
            <tlbwa:Db_T2_Logging_LogCategory_GetOne.BS>
              <InArgument x:TypeArguments="tlb:IBusinessService">
                <mca:CSharpValue x:TypeArguments="tlb:IBusinessService">BusinessService</mca:CSharpValue>
              </InArgument>
            </tlbwa:Db_T2_Logging_LogCategory_GetOne.BS>
            <tlbwa:Db_T2_Logging_LogCategory_GetOne.LogCategoryID>
              <InArgument x:TypeArguments="x:Int32">
                <mca:CSharpValue x:TypeArguments="x:Int32">Param.LogCategoryID</mca:CSharpValue>
              </InArgument>
            </tlbwa:Db_T2_Logging_LogCategory_GetOne.LogCategoryID>
            <tlbwa:Db_T2_Logging_LogCategory_GetOne.RetVal>
              <OutArgument x:TypeArguments="tlbei:ILogCategory_biz">
                <mca:CSharpReference x:TypeArguments="tlbei:ILogCategory_biz">RetVal</mca:CSharpReference>
              </OutArgument>
            </tlbwa:Db_T2_Logging_LogCategory_GetOne.RetVal>
          </tlbwa:Db_T2_Logging_LogCategory_GetOne>
        </Sequence>
      </FlowStep>
      <FlowStep x:Key="GetAll" x:Name="__ReferenceID3" sap2010:WorkflowViewState.IdRef="FlowStep_3">
        <Sequence DisplayName="GetAll Sequence" sap2010:WorkflowViewState.IdRef="Sequence_2">
          <tlbwa:Db_T2_Logging_LogCategory_GetAll DisplayName="LogCategory_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_Logging_LogCategory_GetAll_1">
            <tlbwa:Db_T2_Logging_LogCategory_GetAll.BS>
              <InArgument x:TypeArguments="tlb:IBusinessService">
                <mca:CSharpValue x:TypeArguments="tlb:IBusinessService">BusinessService</mca:CSharpValue>
              </InArgument>
            </tlbwa:Db_T2_Logging_LogCategory_GetAll.BS>
            <tlbwa:Db_T2_Logging_LogCategory_GetAll.RetVal>
              <OutArgument x:TypeArguments="tlbei:ILogCategory_biz[]">
                <mca:CSharpReference x:TypeArguments="tlbei:ILogCategory_biz[]">RetValCollection</mca:CSharpReference>
              </OutArgument>
            </tlbwa:Db_T2_Logging_LogCategory_GetAll.RetVal>
          </tlbwa:Db_T2_Logging_LogCategory_GetAll>
        </Sequence>
      </FlowStep>
      <FlowStep x:Key="Search" x:Name="__ReferenceID4" sap2010:WorkflowViewState.IdRef="FlowStep_4">
        <Sequence DisplayName="Search Sequence" sap2010:WorkflowViewState.IdRef="Sequence_3">
          <tlbwa:Db_T2_Logging_LogCategory_Search DisplayName="LogCategory_Search">
            <tlbwa:Db_T2_Logging_LogCategory_Search.BS>
              <InArgument x:TypeArguments="tlb:IBusinessService">
                <mca:CSharpValue x:TypeArguments="tlb:IBusinessService">BusinessService</mca:CSharpValue>
              </InArgument>
            </tlbwa:Db_T2_Logging_LogCategory_Search.BS>
            <tlbwa:Db_T2_Logging_LogCategory_Search.RetVal>
              <OutArgument x:TypeArguments="tlbei:ILogCategory_biz[]">
                <mca:CSharpReference x:TypeArguments="tlbei:ILogCategory_biz[]">RetValCollection</mca:CSharpReference>
              </OutArgument>
            </tlbwa:Db_T2_Logging_LogCategory_Search.RetVal>
            <tlbwa:Db_T2_Logging_LogCategory_Search.SearchParam>
              <InArgument x:TypeArguments="tlbesi:ILogCategorySearch_biz">
                <mca:CSharpValue x:TypeArguments="tlbesi:ILogCategorySearch_biz">ParamSearch</mca:CSharpValue>
              </InArgument>
            </tlbwa:Db_T2_Logging_LogCategory_Search.SearchParam>
            <sap2010:WorkflowViewState.IdRef>Db_T2_Logging_LogCategory_Search_1</sap2010:WorkflowViewState.IdRef>
          </tlbwa:Db_T2_Logging_LogCategory_Search>
        </Sequence>
      </FlowStep>
    </FlowSwitch>
    <FlowDecision x:Name="__ReferenceID5" sap2010:WorkflowViewState.IdRef="FlowDecision_1">
      <FlowDecision.Condition>
        <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("super admin")</mca:CSharpValue>
      </FlowDecision.Condition>
      <FlowDecision.True>
        <x:Reference>__ReferenceID0</x:Reference>
      </FlowDecision.True>
      <FlowDecision.False>
        <x:Reference>__ReferenceID1</x:Reference>
      </FlowDecision.False>
    </FlowDecision>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID3</x:Reference>
    <x:Reference>__ReferenceID4</x:Reference>
    <sads:DebugSymbol.Symbol>d1NDOlxQcm9qZWN0c1xUMlx0MmxvZ1xUMi5Mb2dnaW5nXFQyLkxvZ2dpbmcuQnVzaW5lc3NcV29ya2Zsb3dzXExvZ0NhdGVnb3J5UXVlcnkueGFtbBRFA54BDwIBAZEBCZEBaQIBUEcHTRsCAUdRCVFTAgFAeQmMARQCASlpCXYUAgEZVAlmFAIBAkdXR3ICAU9KDUptAgFIeguLATQCASpqC3U0AgEaVQtlNAIBA4IBEYIBdwIBOYcBEYcBbwIBMn0RfWoCAStyEXJ3AgEibRFtagIBG2IRYmsCARJdEV1hAgELWBFYagIBBA==</sads:DebugSymbol.Symbol>
  </Flowchart>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="TerminateWorkflow_1" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_1">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">480,250</av:Point>
            <av:Size x:Key="ShapeSize">200,22</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_Logging_LogCategory_GetOne_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_2">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">20,404.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_Logging_LogCategory_GetAll_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_3">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">230,404.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_Logging_LogCategory_Search_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="222,146">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_4">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">440,404.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowSwitch`1_1" sap:VirtualizedContainerService.HintSize="70,87">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <av:Point x:Key="ShapeLocation">295,246.5</av:Point>
            <av:Size x:Key="ShapeSize">70,87</av:Size>
            <av:PointCollection x:Key="AddConnector">295,290 110,290 110,394.5</av:PointCollection>
            <av:PointCollection x:Key="UpdateConnector">330,333.5 330,394.5</av:PointCollection>
            <av:PointCollection x:Key="RemoveConnector">365,290 550,290 550,394.5</av:PointCollection>
            <av:PointCollection x:Key="GetOneConnector">295,290 120,290 120,404.5</av:PointCollection>
            <av:PointCollection x:Key="GetAllConnector">330,333.5 330,404.5</av:PointCollection>
            <av:PointCollection x:Key="SearchConnector">365,290 540,290 540,404.5</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowDecision_1" sap:VirtualizedContainerService.HintSize="70,87">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <av:Point x:Key="ShapeLocation">435,56.5</av:Point>
            <av:Size x:Key="ShapeSize">70,87</av:Size>
            <av:PointCollection x:Key="TrueConnector">435,100 330,100 330,246.5</av:PointCollection>
            <av:PointCollection x:Key="FalseConnector">505,100 580,100 580,250</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Flowchart_1" sap:VirtualizedContainerService.HintSize="694,636">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <av:Point x:Key="ShapeLocation">50,2.5</av:Point>
            <av:Size x:Key="ShapeSize">60,75</av:Size>
            <av:PointCollection x:Key="ConnectorLocation">110,40 470,40 470,56.5</av:PointCollection>
            <x:Double x:Key="Width">680</x:Double>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="T2.Logging.Business.Workflows.LogCategoryQuery_1" sap:VirtualizedContainerService.HintSize="734,716" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>